package org.example.Service;

import org.apache.ibatis.annotations.Mapper;
import org.example.Pojo.User;
import org.example.Utils.UnionResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

@Mapper
public interface UserService {
    UnionResult Register(User user);
    UnionResult Login(User user);
    UnionResult UpdateAvatar(MultipartFile file, User user) throws IOException;
    UnionResult UpdateInfo(User user);
    UnionResult UpdatePassword(User user);
    UnionResult GetUserInfo(String uid);
    UnionResult ActiveUser(User user);
}
